{% extends "learning_logs/base.html" %}
{% load bootstrap3 %}

{% block header %}
    <h1>Topics</h1>
{% endblock header %}

{% block content %}

    <ur>
    {% for topic in topics %}
    <li>
        <h3>
            <a href="{% url 'learning_logs:topic' topic.id %}">{{ topic }}</a>
        </h3>

    </li>
    {% empty %}
    <li>
        没有创建任何主题
    </li>
    {% endfor %}
    </ur>
    <h3>
        <a href="{% url 'learning_logs:new_topic' %}">新建主题</a>
    </h3>

{% endblock content %}

